package com.design.service;

import com.design.model.BaseResult;
import com.design.model.UserLogOnRequest;

import java.util.Map;

public interface LoginService {

    /**
     * 登录接口
     * @param userLogOn 账号密码
     * @return token
     */
    BaseResult<Map<String,String>> token(UserLogOnRequest userLogOn);

    /**
     * 校验是否登录接口
     * @return 是否登录
     */
    BaseResult<Boolean> tokenCheck(String token);
}
